﻿
using System.Threading.Tasks;

namespace Xc.DataAccess.Core
{
    /// <summary>
    /// 设备服务接口
    /// </summary>
    /// <typeparam name="TOption"></typeparam>
    public interface IDeviceService<TOption> where TOption : class, IDevcieId
    {
        /// <summary>
        /// 开启服务
        /// </summary>
        /// <param name="option"></param>
        /// <returns></returns>
         Task<Result> OpenAsync(TOption option);
        /// <summary>
        /// 关闭服务
        /// </summary>
        /// <returns></returns>
         Result Close();
    }
}
